#ifndef __WSOCKET_H__
#define __WSOCKET_H__

#include "unp.h"
//u_short portbase = 0 ;

int errexit( const char* format, ...);

int passivesock( const char* service, const char* transport, int qlen);

int passiveUDP( const char* service, int qlen );

int passiveTCP( const char* service, int qlen );

int connectsock( const char* host, const char*service, const char* transport);

int connectTCP( const char* host, const char* service);

int connectUDP( const char* host, const char* service);
#endif
